#include<stdio.h>

#include<stdlib.h>

int main()
{
	FILE *fp;

	int y, m, d;

	scanf("%d/%d/%d", &m, &d, &y);

	fp = fopen("D;\\myfiles\\data.txt", "w");

	fprintf(fp, "%d/%d/%d", m, d, y);

	fclose(fp);

	fp = fopen("D;\\myfiles\\data.txt", "r");

	fscanf(fp, "%d%d%d", &m, &d, &y);
	
	fclose(fp);

	printf("%d.%d.%d", y, m, d);

	return 0;

}

